home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 3 / MacMania 3.toast / Demo's / KarmaMacDemo / GAME_G1.DXR / 00216.ls < prev    next >
Encoding:
Text File  |  1995-10-24  |  911 b   |  30 lines

  1. on moveBall
  2.   global BallCount
  3.   if the timer < 400 then
  4.     if BallCount < 21 then
  5.       set the height of sprite 28 to the height of sprite 28 - 1
  6.       set the width of sprite 28 to the width of sprite 28 - 1
  7.       if (BallCount mod 2) = 0 then
  8.         set the locV of sprite 28 to the locV of sprite 28 + 1
  9.       end if
  10.       set BallCount to BallCount + 1
  11.     end if
  12.   end if
  13.   if (the timer >= 400) and (the timer < 440) then
  14.     set the locV of sprite 28 to 60
  15.   end if
  16.   if (the timer >= 440) and (the timer < 560) then
  17.     if BallCount < 30 then
  18.       set the height of sprite 28 to the height of sprite 28 + 1
  19.       set the width of sprite 28 to the width of sprite 28 + 1
  20.       if (BallCount mod 2) = 0 then
  21.         set the locV of sprite 28 to the locV of sprite 28 + 1
  22.       end if
  23.     end if
  24.     set BallCount to BallCount + 1
  25.   end if
  26.   if the timer >= 560 then
  27.     moveBallinSpin()
  28.   end if
  29. end
  30.